package org.moonshiner.controller.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import org.moonshiner.model.user.SvnUserCredentials;

@Controller
@RequestMapping(value = "/json")
public class JsonController {

	@RequestMapping(value = "{userName}", method = RequestMethod.GET)
	public @ResponseBody
	SvnUserCredentials printJson(@PathVariable String userName) {

		SvnUserCredentials credentials = new SvnUserCredentials(userName, "test test");

		return credentials;
	}

}
